#include "ZigbusTemperatureItem.h"

ZigbusTemperatureItem::ZigbusTemperatureItem()
    : ZigbusItem(-1, TEMPERATURE_ITEM_SIZE)
{
}


ZigbusTemperatureItem::ZigbusTemperatureItem(int value)
    : ZigbusItem(value, TEMPERATURE_ITEM_SIZE)
{
}

ZigbusTemperatureItem::ZigbusTemperatureItem(const ZigbusTemperatureItem &other)
    : ZigbusItem(other)
{
}

QString ZigbusTemperatureItem::text() const
{
    QString rslt = "%1 degrees";
    rslt.arg(getValue());
    return rslt;
}
